<script setup>
  import '@/config'
  import { RouterView } from 'vue-router'
  import router from '@/router'
  import { watch, ref } from 'vue'
  const path = ref()
  watch(
    () => router.currentRoute.value,
    (route) => {
      path.value = route.name == 'login' ? '1' : '0'
    },
    { immediate: true }
  )
</script>

<template>
  <RouterView :key="path" />
</template>

<style>
  @import url('@/assets/css/main.scss');
</style>

<style lang="less" scoped>
  @import url('@/assets/css/theme.less');
</style>
